import { defHttp } from '../http'
import type { SignInModel, SignData } from '../model/auth'

export const signInApi = (data: SignData) =>
  defHttp.post<SignInModel>('/v1/session', { data })
